package com.pro.mapper;

import com.pro.pojo.JsClosure;
import org.apache.ibatis.annotations.Param;
import org.springframework.security.core.parameters.P;

import java.util.List;

/**
 * ClassName:JsClosureMapper
 * Package:com.pro.mapper
 * Description:
 *
 * @Date:2021/11/17 19:41
 * @Author: ZPT
 */
public interface JsClosureMapper {
    /**
     *
     * @author ZPT
     * @date 2021/11/17 19:41
     * @content :添加封号信息
     */
    Boolean addClosure(JsClosure jsClosure);
    /**
     *
     * @author ZPT
     * @date 2021/11/25 16:10
     * @content :查看封号信息
     */
    List<JsClosure> getClosure(@Param("userCode")String userCode,
                               @Param("reason")String reason,
                               @Param("days")String days);
    /**
     *
     * @author ZPT
     * @date 2021/11/25 18:46
     * @content :修改天数
     */
    Boolean updateClosure(@Param("id")Integer id,@Param("days")Integer days);
    /**
     *
     * @author ZPT
     * @date 2021/11/25 19:18
     * @content :删除数据
     */
    Boolean deleteClosure(Integer id);
}
